var entrada = [[17,58,589,287],
               [0,0,299,102],
               [0,102,299,229],
               [299,0,572,102],
               [299,102,572,229]];

var entrada2 = [[17,58,589,287],
               [0,0,32,4],
               [32,0,68,4],
               [68,0,123,4],
               [123,0,128,4],
               [128,0,132,4],
               [132,0,142,4],
               [142,0,148,4],
               [148,0,177,4],
               [177,0,231,4],
               [231,0,267,4],
               [267,0,299,4],
               [299,0,330,4],
               [330,0,338,4],
               [338,0,372,4],
               [372,0,408,4],
               [408,0,441,4],
               [441,0,481,4],
               [481,0,522,4],
               [522,0,571,4],
               [0,4,32,19],
               [32,4,68,19],
               [68,4,123,19],
               [123,4,128,19],
               [128,4,132,19],
               [132,4,142,19],
               [142,4,148,19],
               [148,4,177,19],
               [177,4,231,19],
               [231,4,267,19],
               [267,4,299,19],
               [299,4,330,19],
               [330,4,338,19],
               [338,4,372,19],
               [372,4,408,19],
               [408,4,441,19],
               [441,4,481,19],
               [481,4,522,19],
               [522,4,571,19],
               [0,19,32,30],
               [32,19,68,30],
               [68,19,123,30],
               [123,19,128,30],
               [128,19,132,30],
               [132,19,142,30],
               [142,19,148,30],
               [148,19,177,30],
               [177,19,231,30],
               [231,19,267,30],
               [267,19,299,30],
               [299,19,330,30],
               [330,19,338,30],
               [338,19,372,30],
               [372,19,408,30],
               [408,19,441,30],
               [441,19,481,30],
               [481,19,522,30],
               [522,19,571,30],
               [0,30,32,44],
               [32,30,68,44],
               [68,30,123,44],
               [123,30,128,44],
               [128,30,132,44],
               [132,30,142,44],
               [142,30,148,44],
               [148,30,177,44],
               [177,30,231,44],
               [231,30,267,44],
               [267,30,299,44],
               [299,30,330,44],
               [330,30,338,44],
               [338,30,372,44],
               [372,30,408,44],
               [408,30,441,44],
               [441,30,481,44],
               [481,30,522,44],
               [522,30,571,44],
               [0,44,32,59],
               [32,44,68,59],
               [68,44,123,59],
               [123,44,128,59],
               [128,44,132,59],
               [132,44,142,59],
               [142,44,148,59],
               [148,44,177,59],
               [177,44,231,59],
               [231,44,267,59],
               [267,44,299,59],
               [299,44,330,59],
               [330,44,338,59],
               [338,44,372,59],
               [372,44,408,59],
               [408,44,441,59],
               [441,44,481,59],
               [481,44,522,59],
               [522,44,571,59],
               [0,59,32,73],
               [32,59,68,73],
               [68,59,123,73],
               [123,59,128,73],
               [128,59,132,73],
               [132,59,142,73],
               [142,59,148,73],
               [148,59,177,73],
               [177,59,231,73],
               [231,59,267,73],
               [267,59,299,73],
               [299,59,330,73],
               [330,59,338,73],
               [338,59,372,73],
               [372,59,408,73],
               [408,59,441,73],
               [441,59,481,73],
               [481,59,522,73],
               [522,59,571,73],
               [0,73,32,87],
               [32,73,68,87],
               [68,73,123,87],
               [123,73,128,87],
               [128,73,132,87],
               [132,73,142,87],
               [142,73,148,87],
               [148,73,177,87],
               [177,73,231,87],
               [231,73,267,87],
               [267,73,299,87],
               [299,73,330,87],
               [330,73,338,87],
               [338,73,372,87],
               [372,73,408,87],
               [408,73,441,87],
               [441,73,481,87],
               [481,73,522,87],
               [522,73,571,87],
               [0,87,32,102],
               [32,87,68,102],
               [68,87,123,102],
               [123,87,128,102],
               [128,87,132,102],
               [132,87,142,102],
               [142,87,148,102],
               [148,87,177,102],
               [177,87,231,102],
               [231,87,267,102],
               [267,87,299,102],
               [299,87,330,102],
               [330,87,338,102],
               [338,87,372,102],
               [372,87,408,102],
               [408,87,441,102],
               [441,87,481,102],
               [481,87,522,102],
               [522,87,571,102],
               [0,102,32,117],
               [32,102,68,117],
               [68,102,123,117],
               [123,102,128,117],
               [128,102,132,117],
               [132,102,142,117],
               [142,102,148,117],
               [148,102,177,117],
               [177,102,231,117],
               [231,102,267,117],
               [267,102,299,117],
               [299,102,330,117],
               [330,102,338,117],
               [338,102,372,117],
               [372,102,408,117],
               [408,102,441,117],
               [441,102,481,117],
               [481,102,522,117],
               [522,102,571,117],
               [0,117,32,130],
               [32,117,68,130],
               [68,117,123,130],
               [123,117,128,130],
               [128,117,132,130],
               [132,117,142,130],
               [142,117,148,130],
               [148,117,177,130],
               [177,117,231,130],
               [231,117,267,130],
               [267,117,299,130],
               [299,117,330,130],
               [330,117,338,130],
               [338,117,372,130],
               [372,117,408,130],
               [408,117,441,130],
               [441,117,481,130],
               [481,117,522,130],
               [522,117,571,130],
               [0,130,32,146],
               [32,130,68,146],
               [68,130,123,146],
               [123,130,128,146],
               [128,130,132,146],
               [132,130,142,146],
               [142,130,148,146],
               [148,130,177,146],
               [177,130,231,146],
               [231,130,267,146],
               [267,130,299,146],
               [299,130,330,146],
               [330,130,338,146],
               [338,130,372,146],
               [372,130,408,146],
               [408,130,441,146],
               [441,130,481,146],
               [481,130,522,146],
               [522,130,571,146],
               [0,146,32,158],
               [32,146,68,158],
               [68,146,123,158],
               [123,146,128,158],
               [128,146,132,158],
               [132,146,142,158],
               [142,146,148,158],
               [148,146,177,158],
               [177,146,231,158],
               [231,146,267,158],
               [267,146,299,158],
               [299,146,330,158],
               [330,146,338,158],
               [338,146,372,158],
               [372,146,408,158],
               [408,146,441,158],
               [441,146,481,158],
               [481,146,522,158],
               [522,146,571,158],
               [0,158,32,172],
               [32,158,68,172],
               [68,158,123,172],
               [123,158,128,172],
               [128,158,132,172],
               [132,158,142,172],
               [142,158,148,172],
               [148,158,177,172],
               [177,158,231,172],
               [231,158,267,172],
               [267,158,299,172],
               [299,158,330,172],
               [330,158,338,172],
               [338,158,372,172],
               [372,158,408,172],
               [408,158,441,172],
               [441,158,481,172],
               [481,158,522,172],
               [522,158,571,172],
               [0,172,32,186],
               [32,172,68,186],
               [68,172,123,186],
               [123,172,128,186],
               [128,172,132,186],
               [132,172,142,186],
               [142,172,148,186],
               [148,172,177,186],
               [177,172,231,186],
               [231,172,267,186],
               [267,172,299,186],
               [299,172,330,186],
               [330,172,338,186],
               [338,172,372,186],
               [372,172,408,186],
               [408,172,441,186],
               [441,172,481,186],
               [481,172,522,186],
               [522,172,571,186],
               [0,186,32,200],
               [32,186,68,200],
               [68,186,123,200],
               [123,186,128,200],
               [128,186,132,200],
               [132,186,142,200],
               [142,186,148,200],
               [148,186,177,200],
               [177,186,231,200],
               [231,186,267,200],
               [267,186,299,200],
               [299,186,330,200],
               [330,186,338,200],
               [338,186,372,200],
               [372,186,408,200],
               [408,186,441,200],
               [441,186,481,200],
               [481,186,522,200],
               [522,186,571,200],
               [0,200,32,217],
               [32,200,68,217],
               [68,200,123,217],
               [123,200,128,217],
               [128,200,132,217],
               [132,200,142,217],
               [142,200,148,217],
               [148,200,177,217],
               [177,200,231,217],
               [231,200,267,217],
               [267,200,299,217],
               [299,200,330,217],
               [330,200,338,217],
               [338,200,372,217],
               [372,200,408,217],
               [408,200,441,217],
               [441,200,481,217],
               [481,200,522,217],
               [522,200,571,217],
               [0,217,32,228],
               [32,217,68,228],
               [68,217,123,228],
               [123,217,128,228],
               [128,217,132,228],
               [132,217,142,228],
               [142,217,148,228],
               [148,217,177,228],
               [177,217,231,228],
               [231,217,267,228],
               [267,217,299,228],
               [299,217,330,228],
               [330,217,338,228],
               [338,217,372,228],
               [372,217,408,228],
               [408,217,441,228],
               [441,217,481,228],
               [481,217,522,228],
               [522,217,571,228]];